
export function useTaskOnlineStatus() {
  const taskOnlineStatus = ref([{
    label: '启用',
    value: 1,
  }, {
    label: '停用',
    value: 0
  }])

  const getOnlineStatusLabel = (value: number) => {
    return taskOnlineStatus.value.find(item => item.value === value)?.label ?? value
  }

  return {
    taskOnlineStatus,
    getOnlineStatusLabel
  }
}
